﻿<ion-view view-title="购物车">
    <ion-content>
        <div class="card" ng-repeat="(index,shopping) in shoppingcart.shoppingcart">
            <ion-item>
                商品编号：{{shopping.product_id}}
            </ion-item>
            <ion-item>
                商品名称：{{shopping.product_name}}
            </ion-item>
            <ion-item>
                商品价格：{{shopping.product_price}}
            </ion-item>
                <label class="item item-input">
                 <span class="input-label">购买数量</span>
                    <input type="number" ng-model="shopping.product_number" ng-value="shopping.product_number">
                </label>
            <ion-item>
                卖家：{{shopping.seller_name}}
            </ion-item>
            <ion-item>
                <button ng-click="order_add(index)" class="button button-balanced button-outline button-block">提交订单</button>
                <button ng-click="del(index)" class="button button-assertive button-outline button-block">删除</button>
            </ion-item>
        </div>
    </ion-content>
</ion-view>